#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main(void)
{
	/********* Begin *********/
	int a = 0;
	int b = 0;
	int c = 0;
	int max = 0;

	scanf("%d,%d,%d", &a, &b, &c);
	if (a > b) {
		max = a;
	}
	else {
		max = b;
	}
	if (max < c) {
		max = c;
	}
	printf("max=%d\n", max);


	/********* End *********/
	return 0;
}